import object_oriented as od
from lambda_test import my_list


class Person(object):
    def __init__(self, hour):
        print('人类初始化')
        self.hour = hour

    def sleep(self):
        print('每日休息' + self.hour)


class Father(Person):
    def __init__(self, name, hour):
        # super(Father, self).__init__(hour)
        Person.__init__(self, hour)
        self.name = name

    def makemoney(self, money):
        print('爸爸赚了' + str(money) + '钱')


class Monther(Person):
    def __init__(self, dish):
        # super(Monther, self).__init__(hour)
        self.dish = dish

    def cook(self):
        print('妈妈做了' + self.dish)

    def makemoney(self, money):
        print('妈妈赚了' + str(money) + '钱')


class Son(Father, Monther):
    a_str = '王者荣耀'

    def __init__(self, course, name, hour, food):
        # super(Son, self).__init__(self, name, hour)
        Father.__init__(self, name, hour)
        Monther.__init__(self, food)
        # Monther.__init__(self, food, hour)
        # super(Son, self).__init__(food, hour)
        self.course = course

    def study(self):
        print('我在学习' + self.course + '课程')

    @classmethod
    def test(cls):
        print('这是一个类方法' + Son.a_str)

    @staticmethod
    def test1():
        print('这是一个静态方法')


son = Son('Python', 'Tom', '10小时', '黄焖鸡')
son.cook()
son.makemoney('1000')
son.sleep()
son.study()
Son.a_str = '和平精英'
Son.test()
Son.test1()
myPhone = od.MyPhone()
myPhone.__ring__()
print(my_list)
print(__name__)
print(Son.__dict__)
print(son.__dict__)
# print(son.D)
# son.sleep()
# print(son.name)
# print(son.age)
#
# son.makemoney(100)
